package com.zlq.three;

import org.junit.Test;

public class Director {
    @Test
    public void direct(){

        //1、指定角色的饰演者
        GeLi geli = new LiuDeHua();

        //2、注入具体饰演者到剧本中
        MoAttack moAttack = new MoAttack();
        moAttack.injectGeli(geli);
        moAttack.cityGateAsk();

    }
}
